package com.baizhi.entity;

import java.util.Date;

//药品实体类
public class Drug {
//    drugid  int primary key auto_increment,
    private Integer drugid;
//    name varchar(50),-- 药品名
    private String name;
//    spec varchar(50),-- 规格
    private String spec;
//    unit varchar(10),-- 单位
    private String unit;
//    product_company varchar(50),-- 生产企业
    private String product_company;
//    product_date date,-- 生产日期
    private Date product_date;
//    ok_date date,-- 保质期至
    private Date ok_date;
//    import_price double,-- 进价
    private Double import_price;
//    price double,-- 零售价
    private Double price;
//    sale_status int,-- 销售状态  （0：正常销售    1：停售）
    private Integer sale_status;
//    is_import int,-- 是否是进口(0:是   1：非进口药)
    private Integer is_import;
//    description varchar(500)-- 产品说明
    private String description;

    public Drug() {
    }

    public Drug(Integer drugid, String name, String spec, String unit, String product_company, Date product_date, Date ok_date, Double import_price, Double price, Integer sale_status, Integer is_import, String description) {
        this.drugid = drugid;
        this.name = name;
        this.spec = spec;
        this.unit = unit;
        this.product_company = product_company;
        this.product_date = product_date;
        this.ok_date = ok_date;
        this.import_price = import_price;
        this.price = price;
        this.sale_status = sale_status;
        this.is_import = is_import;
        this.description = description;
    }

    public Integer getDrugid() {
        return drugid;
    }

    public void setDrugid(Integer drugid) {
        this.drugid = drugid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getProduct_company() {
        return product_company;
    }

    public void setProduct_company(String product_company) {
        this.product_company = product_company;
    }

    public Date getProduct_date() {
        return product_date;
    }

    public void setProduct_date(Date product_date) {
        this.product_date = product_date;
    }

    public Date getOk_date() {
        return ok_date;
    }

    public void setOk_date(Date ok_date) {
        this.ok_date = ok_date;
    }

    public Double getImport_price() {
        return import_price;
    }

    public void setImport_price(Double import_price) {
        this.import_price = import_price;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getSale_status() {
        return sale_status;
    }

    public void setSale_status(Integer sale_status) {
        this.sale_status = sale_status;
    }

    public Integer getIs_import() {
        return is_import;
    }

    public void setIs_import(Integer is_import) {
        this.is_import = is_import;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Drug{" +
                "drugid=" + drugid +
                ", name='" + name + '\'' +
                ", spec='" + spec + '\'' +
                ", unit='" + unit + '\'' +
                ", product_company='" + product_company + '\'' +
                ", product_date=" + product_date +
                ", ok_date=" + ok_date +
                ", import_price=" + import_price +
                ", price=" + price +
                ", sale_status=" + sale_status +
                ", is_import=" + is_import +
                ", description='" + description + '\'' +
                '}';
    }
}
